<%@ page language="java" contentType="text/html; charset=UTF-8"
	isELIgnored="false" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f"%>
<%@ taglib uri="/mytag" prefix="yjd"%>
<div class="wrap J_check_wrap">
	<div class="nav">
		<div class="return">
			<a href='<yjd:url url="/role/adminList"/>'>返回上一级</a>
		</div>
	</div>

	<form id="J_word_form" action='<yjd:url url="/role/edit"/>' class="J_ajaxForm" method="post">
		<div class="h_a">设置${model.username }角色组</div>
		<input type="hidden" name="admin_id" value="${model.admin_id }"/>
		<div class="table_list">
			<table width="100%">
				<thead>
					<tr>
						<td width="60"><label><input type="checkbox"
								class="J_check_all">全选</label></td>
						<td width="30">ID</td>
						<td>角色名称</td>
						<td>角色代码</td>
					</tr>
				</thead>
				<tbody>
					<c:forEach items="${roleList }" var="m1">
					<tr style="font-weight: bold">
						<td><input type="checkbox" name="ids[]" value="${m1.role_id }"
							class="J_check" ${(empty roleMap[m1.role_id+""])?"":"checked='checked'" } /></td>
						<td>${m1.role_id }</td>
						<td>${m1.role_name }</td>
						<td>${m1.role }</td>
					</tr>
					</c:forEach>
				</tbody>
			</table>
		</div>

		<div class="btn_wrap">
			<div class="btn_wrap_pd">
				<label class="mr20"><input type="checkbox"
					class="J_check_all">全选</label>
				<button class="btn btn_submit J_ajax_submit_btn" type="button">保存</button>
			</div>
		</div>
	</form>
</div>
